package com.neuedu.elmserver.utils;

import com.neuedu.elmserver.pojo.Business;

import java.util.Comparator;

public class cmpDistance implements Comparator<Business> {

    /**
     * 小到大
     * @return
     */
    @Override
    public int compare(Business o1, Business o2) {
        return (int) (o1.getDistance() * 100 - o2.getDistance() * 100);
    }
}
